GtkCssProvider: Immediately bail out if GType couldn't be resolved.
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 4 Aug 2010 09:42:08 +0000 (11:42 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:37:33 +0000 (15:37 +0100)
gtk/gtkcssprovider.c

index 8deae7e75ce0e38eb936b8ed38077e68bb29f4d3..692de7831a09b14975a51992a44289b9fcd444cf 100644 (file)
@@ -444,14 +444,16 @@ compare_selector (GtkWidgetPath *path,
       match = compare_selector_element (path, i, elem, &elem_score);
       i++;
 
-      if (!match && elem->combinator == COMBINATOR_DESCENDANT)
+      if (!match &&
+          elem->elem_type != SELECTOR_TYPE_NAME &&
+          elem->combinator == COMBINATOR_DESCENDANT)
         {
           /* With descendant combinators there may
            * be intermediate chidren in the hierarchy
            */
           match = TRUE;
         }
-      else
+      else if (match)
         elements = elements->next;
 
       if (match)